package com.bupt.inklue.repository;

import com.bupt.inklue.pojo.HanZi;
import org.springframework.data.repository.CrudRepository;
import org.springframework.stereotype.Repository;

import java.util.Optional;

@Repository
public interface HanZiRepository extends CrudRepository<HanZi, Long> {

    Optional<HanZi> findByCode(String code);
}
